//
//  Diary.m
//  MyTrip
//
//  Created by zhang on 15/8/24.
//  Copyright (c) 2015年 张益. All rights reserved.
//

#import "Diary.h"

@implementation Diary

- (void)dealloc
{
    [_address release];
    [_authorName release];
    [_authorImage release];
    [_viewCount release];
    [_date release];
    [_dayCount release];
    [_title release];
    [_pic release];
    [super dealloc];
}



+ (instancetype)diaryWithPic:(NSString *)pic title:(NSString *)title date:(NSString *)date dayCount:(NSString *)dayCount viewCount:(NSString *)viewCount authorImage:(NSString *)authorImage authorName:(NSString *)authorName address:(NSString *)address type:(NSInteger)type diaryid:(NSInteger)diaryid{
    Diary *diary = [[Diary alloc] init];
    diary.pic = pic;
    diary.title = title;
    diary.date = date;
    diary.dayCount = dayCount;
    diary.viewCount = viewCount;
    diary.authorImage = authorImage;
    diary.authorName = authorName;
    diary.address = address;
    diary.type = type;
    diary.diaryid = diaryid;
    return [diary autorelease];
}


@end
